package com.lxy.bean;

public class Permission implements Comparable<Permission> {
    private Integer id;

    private Integer resId;

    private Integer pId;

    private Integer sort;
    
    private Resource permissionInfo;
    
    private Permission parentPermission;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getResId() {
        return resId;
    }

    public void setResId(Integer resId) {
        this.resId = resId;
    }

    public Integer getpId() {
		return pId;
	}

	public void setpId(Integer pId) {
		this.pId = pId;
	}

	public Integer getSort() {
		return sort;
	}

	public void setSort(Integer sort) {
		this.sort = sort;
	}

	public Resource getPermissionInfo() {
		return permissionInfo;
	}

	public void setPermissionInfo(Resource permissionInfo) {
		this.permissionInfo = permissionInfo;
	}

	public Permission getParentPermission() {
		return parentPermission;
	}

	public void setParentPermission(Permission parentPermission) {
		this.parentPermission = parentPermission;
	}

	@Override
	public int compareTo(Permission o) {
		 return this.getSort().compareTo(o.getSort());  
	}
	
	
}